<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="。。/js/jquery-1.9.1.js" type="text/javascript"></script>
<script src="../compoment/jquery.uploadify.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../compoment/uploadify.css">
<title>文件上传工具</title>
<script type="text/javascript">
$(function(){
 $("#file_upload").uploadify({  
        'uploader'       : '../compoment/scripts/uploadify.swf',  
        'script'         : 'common/upload.do',  
        'cancelImg'      : '../compoment/uploadify-cancel.png',  
        'buttonImg'      : '../compoment/uploadify/buttonImg.png',  
        'folder'         : 'photos',  
        'queueID'        : 'queue',  
        'auto'           : false,  
        'multi'          : true,  
        'wmode'          : 'transparent',  
        'simUploadLimit' : 999,  
        'fileExt'        : '*.png;*.gif;*.jpg;*.bmp;*.jpeg',  
        'fileDesc'       : '图片文件(*.png;*.gif;*.jpg;*.bmp;*.jpeg)',  
        'onAllComplete'  :function(event,data)   
        {  
            $('#result').html(data.filesUploaded +'个图片上传成功');  
        }  
    });  
});
 </script>
</head>
<body>
<form>
<div id="queue"></div>
		<input id="file_upload" name="file_upload" type="file" multiple="true" />
	</form>
	<p id="result"></p>
</body>
</html>